import React, { Component } from 'react'
import {HashRouter as Router,Route,Switch,Redirect} from "react-router-dom"
import Login from './pages/Login'
import System from './pages/System'
import Error from './pages/Error'
export default class App extends Component {
  render() {
    return (
      <div>
        <Router>
            <Switch>
                <Route path="/" exact component={Login}></Route>
                <Route path="/login" component={Login}></Route>
                <Route path="/system"  component={System}></Route>
                <Route path="*" component={Error}></Route>
            </Switch>
        </Router>
      </div>
    )
  }
}
